<style type="text/css">
#Nav2r a{
	width:1px;
	color:#fff;
}
</style>
<form id="Form1"  method="post" action="{-$body.url-}&act={-if $L.id-}eok&id={-$L.id-}{-else-}aok{-/if-}" ENCTYPE="multipart/form-data">

<div class="bodytabdiv">
<table class='bodytab' cellspacing='1' id='columnx'>
 <tr><th class='th' colspan='2'>{-if $L.id-}修改{-else-}添加{-/if-}{-$T.itemName-}</th></tr>

<tr><td class="fieldName">栏目名</td><td><input type="text" name="paramName" value="{-$xL.paramName-}"/> </td></tr>


<tr>
	<td class="fieldName">父栏目</td>
	<td>{-$P.0-}</td>
</tr>

{-if !$L.id-}

<tr class="fieldName">
	<td class="fieldName">是否父栏目</td>
	<td>
		<label for="d_isParent1"><input type="radio" name="isParent" id="d_isParent1" value='1'/>是</label>
		<label for="d_isParent0"><input type="radio" name="isParent" id="d_isParent0" value='0'checked='true'/>否</label>
	</td>
</tr>
{-/if-}

<tr>
	<td >优先级</td>
	<td><input name='orderId' value='{-$xL.orderId|default:'0'-}' size='2' maxlength='2'></td>
</tr>



{-include file="./form/"|cat:$T.id|cat:".tpl"-}



{-if $_GET.pid==1-}
<tr>
	<td class="fieldName">是否绑定表</td>
	<td>
		<label for="d_isUseTab1"><input type="radio" name="isUseTab" id="d_isUseTab1" value='1'{-if $L.isUseTab-} checked='true'{-/if-} />是</label>
		<label for="d_isUseTab0"><input type="radio" name="isUseTab" id="d_isUseTab0" value='0'{-if !$L.isUseTab-} checked='true'{-/if-} />否
	</td></label>
</tr>

<tr depends="isUseTab:[1]">
	<td class="fieldName">绑定表</td>
	<td> <a class="updown0" href="#x1" name="x1">展开</a><div class="checkboxlist"  style="display:none">{-$L.tabs_radio-}</div></td>
</tr>

<tr>
	<td class="fieldName"> 绑定参数 </td>
	<td>
		<label for="d_isUseParam1"><input type="radio" name="isUseParam" id="d_isUseParam1" value='1'{-if $L.isUseParam-} checked='true'{-/if-} />是</label>
		<label for="d_isUseParam0"><input type="radio" name="isUseParam" id="d_isUseParam0" value='0'{-if !$L.isUseParam-} checked='true'{-/if-} />否</label>
	</td>
</tr>

<tr depends="isUseParam:[1]">
	<td class="fieldName">绑定参数</td>
	<td> <a class="updown0" href="#x1" name="x1">展开</a><div class="checkboxlist"  style="display:none">{-$L.params_radio-}</div></td>
</tr>

{-/if-}

</table>
</div>

<input type='hidden' name='jurl' value='{-$_ENV.referer-}'>

<div class='bodysubmit'>
<input type='submit' value='递交'>
<input type='reset' value='默认'>
</div>

</form>

<div class='bodyfooter'>
	<a href='{-$_ENV.referer-}'>返回</a>
</div>

<script type="text/javascript">
function Form1_submit(){
	var e	= this.elements["paramName"];
	if(!e.value.match(/^([^\x00-\xff]|\w){0,15}$/) ){
		alert('栏目名不能包含特殊字符!');e.select();e.focus(); return false;
	}
	var e = this.elements['orderId']; if( !e.value.match(/^\d{1,2}$/)){
		alert('优先级只能是不大于100的数字');e.select(); e.focus(); return false;
	}
	return true;
}

$$("#Nav2r a").addEvent('click', function(evt){
	evt.stop();
});
</script>

